import request from '@/utils/request'

// 查询涉案信访列表
export function listPetition(query) {
  return request({
    url: '/supervision/petition/list',
    method: 'get',
    params: query
  })
}

// 查询涉案信访详细
export function getPetition(id) {
  return request({
    url: '/supervision/petition/' + id,
    method: 'get'
  })
}

// 新增涉案信访
export function addPetition(data) {
  return request({
    url: '/supervision/petition',
    method: 'post',
    data: data
  })
}

// 修改涉案信访
export function updatePetition(data) {
  return request({
    url: '/supervision/petition',
    method: 'put',
    data: data
  })
}

// 删除涉案信访
export function delPetition(id) {
  return request({
    url: '/supervision/petition/' + id,
    method: 'delete'
  })
}
